
<div nz-row [nzGutter]="8">
<div nz-col [nzSpan]="4">
  <nz-card>
    <nz-tree
    nzAsyncData
    nzShowLine
    [nzData]="nodes"
    (nzClick)="nzEvent($event)"
    (nzExpandChange)="nzEvent($event)"
  >
  </nz-tree>
  </nz-card>
</div>
<div nz-col [nzSpan]="20">
  <nz-card>
      <nz-card>
        <sf #editsf mode="edit" [schema]="editSchema" [button]="null" (formChange)="formChanged($event)">
          <div  style="text-align:right;padding-right:5px;">
          <button nz-button nzType="primary" [disabled]="isAddDisabled" (click)="add()"><i nz-icon nzType="plus"></i>新建子菜单</button>
          <button nz-button #btnSave [disabled]="isSaveDisabled" (click)="update()"><i nz-icon nzType="save"></i>保存修改</button>
          <button nz-button nz-popconfirm
          nzPopconfirmTitle="{{confirmText}}"
          nzPopconfirmPlacement="top" (nzOnConfirm)="confirm()"
          (nzOnCancel)="cancel()" nzType="danger" [disabled]="isDelDisabled"><i nz-icon nzType="delete"></i>删除</button>
        </div>

      </sf>

        <nz-modal [(nzVisible)]="isVisible" nzTitle="菜单新增" (nzOnCancel)="handleCancel()">
          <sf #sf button="none"  [schema]="newSchema"></sf>
          <div *nzModalFooter>
            <button nz-button nzType="default" (click)="handleCancel()">取消</button>
            <button nz-button nzType="primary" (click)="handleOk()">确定</button>
          </div>
        </nz-modal>
      </nz-card>

      <nz-card>
        <lb-grid #st [columns]="columns" [sname]="params.sname" [queryparas]="params.form"></lb-grid>
        <!-- <st #st [columns]="columns" [data]="dataSet" [page]="stpage"  [pi]="stchange.pi"  [ps]="stchange.ps" [total]="stchange.total" (change)="pageChange($event)"></st> -->
      </nz-card>
  </nz-card>
</div>
</div>

